package com.jindu.producer.finance.api;


import com.jindu.kernel.result.JsonResult;
import com.jindu.producer.finance.model.SUsersEntity;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;
import java.util.List;

/**
 * @author jarvischang
 */
@FeignClient(name = "producer-system/user")
public interface UserInterface {


    @RequestMapping(value = "getUserName",method = RequestMethod.GET)
    public HashMap<String,String> getUserName(@RequestParam(value = "userIds") List<String> userIds);

    @RequestMapping(value = "getName",method = RequestMethod.GET)
    public  HashMap<String,String> getName(@RequestParam(value = "userName") String userName);

    @RequestMapping(value = "get",method = RequestMethod.GET)
    public JsonResult<SUsersEntity> get(@RequestParam(value = "id") String id);

}
